package com.gome.han.bigdata.scala.practice

/**
 * @author Hanpeng
 * @date 2021/2/6 16:11
 * @description:
 */
object _0006Arithmetic {
  def main(args: Array[String]): Unit = {
    val r1: Int = 10 / 3
    println(r1)
    val r2: Double = 10 / 3  //这个里面有隐式转换
    println(r2)
    val r3: Double = 10.0 / 3  // 3.3333333333333335
    println(r3.formatted("%.2f"))

  }
}
